package com.hhc.repository;

import com.hhc.entity.UserRoleRelation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *   用户角色关联数据库访问层
 * </p>
 * @author pc
 */
@Repository
public interface UserRoleRelationRepository extends JpaRepository<UserRoleRelation, Long> {
    boolean existsByUserIdAndRoleId(Long userId, Long roleId);
}